/*
 * Copyright (C), 2002-2017, 南京苏宁软件技术有限公司
 * FileName: AreaModelRel.java
 * Author:   10070706
 * Date:     2017年1月9日 下午5:16:49
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.mainpushnew;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 功能简述: area_model_rel表<br>
 *
 * @author 10070706 陈辉
 */
@Entity(name = "area_model_rel")
public class AreaModelRel implements Serializable {

    /**
     */
    private static final long serialVersionUID = 5618018956982185566L;

    /**
     * 表主键
     */
    private Long id;

    /**
     * 大区任务id
     */
    private Long areaTaskId;

    /**
     * 总部任务id
     */
    private Long hqTaskId;

    /**
     * 款数id
     */
    private Long modelId;

    /**
     * 目标数量
     */
    private Integer targetNum;

    /**
     * 分配状态：0未分配 1已分配 2重新分配
     */
    private Short distStatus;

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("AreaModelRel [id=").append(id).append(", areaTaskId=").append(areaTaskId).append(", hqTaskId=")
                .append(hqTaskId).append(", modelId=").append(modelId).append(", targetNum=").append(targetNum)
                .append(", distStatus=").append(distStatus).append("]");
        return builder.toString();
    }

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "area_task_id")
    public Long getAreaTaskId() {
        return areaTaskId;
    }

    public void setAreaTaskId(Long areaTaskId) {
        this.areaTaskId = areaTaskId;
    }

    @Column(name = "hq_task_id")
    public Long getHqTaskId() {
        return hqTaskId;
    }

    public void setHqTaskId(Long hqTaskId) {
        this.hqTaskId = hqTaskId;
    }

    @Column(name = "model_id")
    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    @Column(name = "target_num")
    public Integer getTargetNum() {
        return targetNum;
    }

    public void setTargetNum(Integer targetNum) {
        this.targetNum = targetNum;
    }

    @Column(name = "dist_status")
    public Short getDistStatus() {
        return distStatus;
    }

    public void setDistStatus(Short distStatus) {
        this.distStatus = distStatus;
    }

}
